#include <stdio.h>
#include <stdlib.h>
#include "list.h" // 请不要删除，否则检查不通过

void lnk_del_x2y(LinkList L, ElemType mink, ElemType maxk) {
    while(L && L -> next) {
        while(L -> next && mink < L -> next -> data && L -> next -> data < maxk) {
            LinkList tmp = L -> next;
            L -> next = tmp -> next;
            free(tmp);
        }
        L = L -> next;
    }
}

// 好评如潮